<!--navbar-->
{set:$cat=IReq::get('cat')}
{set:$order=IReq::get('order')}
{set:$seller=IReq::get('id')}
{set:$word=IReq::get('word')}
{set:$goodsObj = $this->goodsObj;$resultData = $goodsObj->find();}
<div class="navbar">
    <div class="navbar-inner">
        <div class="left">
            <a href="#" class="back link"> <i class="icon icon-return"></i>
            </a>
        </div>
        <div class="center">商品搜索:{$word}</div>
    </div>
</div>

<div class="pages navbar-through">

    <div class="page no-toolbar with-subnavbar" data-page="mallPreSell" data-currpage="1" data-maxpage="{$goodsObj->paging->lastpage}" >
        <div class="subnavbar">
            <div class="filter row">
                <div class="col-auto">
                    {set:$order=IReq::get('order')}
                    <a href="{url:/yunsite/search_list/order/sale/word/$word/by/desc}" data-reload="true" {if:$order=='sale'||empty($order)}class="active"{/if} data-order="sale">按销售排行</a>
                </div>
                <div class="col-auto">
                    <a href="{url:/yunsite/search_list/order/new/word/$word/by/desc}" data-reload="true" {if:$order=='new'}class="active"{/if} data-order="new">按时间排行</a>
                </div>
            </div>
        </div>
        <div class="page-content infinite-scroll pull-to-refresh-content-off">
            <!-- Default pull to refresh layer-->
            <div class="pull-to-refresh-layer">
                <div class="preloader"></div>
                <div class="pull-to-refresh-arrow"></div>
            </div>
            <!--S list-->
            <div class="module module-product-list">
                {set:$goodsObj = $this->goodsObj;$resultData = $goodsObj->find()}
                <div class="bd list infinite-scroll-content" >
                    {foreach:items=$resultData}
                    <a href="{url:/yunsite/products/id/$item[id]}" class="product col-100">
                        <figure>
                            <img data-src="{url:/pic/thumb/img/$item[ad_img]}" class="lazy" alt="">
                            <figcaption>
                                <h3>{$item['name']}</h3>
                                <div class="pro-bar row">
                                    <div class="price">
                                        <ins><small>&yen;</small>{$item['sell_price']}</ins>
                                        <del>市场价:<small>&yen;</small>{$item['market_price']}</del>
                                    </div>
                                </div>
                            </figcaption>
                        </figure>
                    </a>
                    {/foreach}
                </div>
            </div>
            <!--E list-->
            <div class="infinite-scroll-preloader preloader-hidden">
                <div class="preloader"></div>
            </div>
        </div>
    </div>
</div>